﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CMS.Entity;
using CMS.DAL;

namespace CMS.BLL
{
    public class YearProfileBLL
    {
        public YearProfile GetOne(string stock, DateTime endDate)
        {
            YearProfileDAL dal = new YearProfileDAL();
            return dal.GetOne(stock, endDate);
        }

        public List<YearProfile> GetAll()
        {
            YearProfileDAL dal = new YearProfileDAL();
            return dal.GetAll();
        }

        public void Update(YearProfile c)
        {
            YearProfileDAL dal = new YearProfileDAL();
            dal.Update(c);
        }

        public List<YearProfile> GetLst(string stock)
        {
            YearProfileDAL dal = new YearProfileDAL();
            return dal.GetLst(stock);
        }
    }
}
